<?php
/**
 * IDatabaseConnection interface to database connection
 * @package Core
 * @subpackage Database
 * @category Interface
 * @author kovacsricsi
 */

interface IDatabaseConnection
{
	/**
	 * ExecuteQuery.
	 * @access public
	 * @static
	 * @param string $query
	 * @param string $name
	 * @return resource
	 */
	public static function executeQuery($query, $name = "default");

	/**
	 * Protect database from sqlinjection.
	 * @access public
	 * @static
	 * @param string $string
	 * @return string
	 */
    public static function prepare($string);
}
?>
